import Vue from 'vue'
import VueRouter from 'vue-router'
import Screen from '@/views/ScreenPage'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screen' // 一级路由重定向
  },
  {
    path: '/screen',
    component: Screen
  } // 主路由
]

const router = new VueRouter({
  mode: 'history', // # 所以就没有
  base: process.env.BASE_URL,
  routes
})

export default router
